package com.whmall.service.crm.module.supplierreview.impl.dao;

import com.whmall.service.crm.module.supplierreview.entity.SupplierReviewAttachmentDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * SupplierReviewAttachmentMapper
 *
 * @author alex
 * @since 2021/1/18
 */
@Mapper
public interface SupplierReviewAttachmentMapper {
    int deleteById(Long id);

    int insert(SupplierReviewAttachmentDO record);

    int insertSelective(SupplierReviewAttachmentDO record);

    int updateByIdSelective(SupplierReviewAttachmentDO record);

    int updateById(SupplierReviewAttachmentDO record);

    SupplierReviewAttachmentDO selectById(Long id);

    List<SupplierReviewAttachmentDO> findByReviewId(@Param("reviewId") Long reviewId);

    List<SupplierReviewAttachmentDO> findByReviewIdIn(@Param("reviewIds") Collection<Long> reviewIds);

}
